﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Simple.Repository.Migrations
{
    public partial class _3 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "GardenHouseInfo",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "char(36)", nullable: false, comment: "主键", collation: "ascii_general_ci"),
                    GardenName = table.Column<string>(type: "longtext", nullable: false, comment: "园所名称")
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    DateofEstablishment = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "成立时间"),
                    ProvinceValue = table.Column<string>(type: "longtext", nullable: false, comment: "省份值")
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    ProvinceName = table.Column<string>(type: "longtext", nullable: false, comment: "省份名称")
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    CityValue = table.Column<string>(type: "longtext", nullable: false, comment: "城市值")
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    CityName = table.Column<string>(type: "longtext", nullable: false, comment: "城市名称")
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    AreaValue = table.Column<string>(type: "longtext", nullable: false)
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    StreetName = table.Column<string>(type: "longtext", nullable: false, comment: "街道名称")
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    GardenType = table.Column<int>(type: "int", nullable: false, comment: "幼儿园类型（1-公立，2-私立）"),
                    WhetherItIsPuhuiPark = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否普惠园"),
                    GardenLevel = table.Column<int>(type: "int", nullable: false, comment: "园所级别"),
                    AreaCovered = table.Column<double>(type: "double", nullable: false, comment: "占地面积"),
                    GardenLogo = table.Column<string>(type: "longtext", nullable: false, comment: "园所Logo")
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    Desc = table.Column<string>(type: "longtext", nullable: false, comment: "园所介绍信息")
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false, comment: "软删标记"),
                    CreatedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建时间"),
                    CreatedUserId = table.Column<Guid>(type: "char(36)", nullable: true, comment: "创建用户Id", collation: "ascii_general_ci"),
                    UpdatedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "更新时间"),
                    UpdatedUserId = table.Column<Guid>(type: "char(36)", nullable: true, comment: "更新用户Id", collation: "ascii_general_ci")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_GardenHouseInfo", x => x.Id);
                },
                comment: "园所信息表")
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "GardenHouseInfo");
        }
    }
}
